/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.cargas;

import com.excel2objects.common.excel.annotations.ExcelColumn;
import java.io.Serializable;
import java.util.Date;
import net.easoftware.code.beans.JpaEntityConverter;
import net.easoftware.code.beans.cargas.annotation.DataFilterConf;
import net.easoftware.code.beans.cargas.impl.ChequeRechazadoFilter;
import net.easoftware.code.beans.facade.LineaNegocio;
import net.easoftware.code.beans.facade.UnidadNegocio;
import net.easoftware.code.beans.jpa.ChequerechazadocaStore;
import net.easoftware.code.error.EaError;

/**
 *
 * @author eliu
 *
 */
@DataFilterConf(filter = ChequeRechazadoFilter.class)
public class ChequeRechazadoCA extends JpaEntityConverter implements Serializable {

    @ExcelColumn(order = "1")
    private Integer ccco;
    @ExcelColumn(order = "2")
    private Integer rpan8;
    @ExcelColumn(order = "3")
    private String rpan809;
    @ExcelColumn(order = "4")
    private String rpdctm;
    @ExcelColumn(order = "5")
    private Integer rpdocm;
    @ExcelColumn(order = "6")
    private String rpag;
    @ExcelColumn(order = "7")
    private String rpdct;
    @ExcelColumn(order = "8")
    private Double rpdoc;
    @ExcelColumn(order = "9")
    private Date rpdivj;
    @ExcelColumn(order = "10")
    private Date rpddj;
    @ExcelColumn(order = "11")
    private Integer rppn;
    @ExcelColumn(order = "12")
    private Integer rpfy;
    @ExcelColumn(order = "13")
    private String rpac02;
    @ExcelColumn(order = "14")
    private String rpac0201;
    @ExcelColumn(order = "15")
    private Date rpdmtj;
    @ExcelColumn(order = "16")
    private Date rpdgj;
    @ExcelColumn(order = "17")
    private String rprmk;
    @ExcelColumn(order = "18")
    private String rpac05;
    @ExcelColumn(order = "19")
    private String rptorg;
    @ExcelColumn(order = "20")
    private String rpglba;
    @ExcelColumn(order = "21")
    private String fldA5ACL;
    @ExcelColumn(order = "22")
    private String fldA5TRAR;
    @ExcelColumn(order = "23")
    private String fldA5TRAR01;
    private UnidadNegocio un;
    private LineaNegocio ln;

    public UnidadNegocio getUn() {
        return un;
    }

    public void setUn(UnidadNegocio un) {
        this.un = un;
    }

    public LineaNegocio getLn() {
        return ln;
    }

    public void setLn(LineaNegocio ln) {
        this.ln = ln;
    }

    public String getRpglba() {
        return rpglba;
    }

    public void setRpglba(String rpglba) {
        this.rpglba = rpglba;
    }

    public String getFldA5ACL() {
        return fldA5ACL;
    }

    public void setFldA5ACL(String fldA5ACL) {
        this.fldA5ACL = fldA5ACL;
    }

    public String getFldA5TRAR() {
        return fldA5TRAR;
    }

    public void setFldA5TRAR(String fldA5TRAR) {
        this.fldA5TRAR = fldA5TRAR;
    }

    public String getFldA5TRAR01() {
        return fldA5TRAR01;
    }

    public void setFldA5TRAR01(String fldA5TRAR01) {
        this.fldA5TRAR01 = fldA5TRAR01;
    }

    public Integer getRppn() {
        return rppn;
    }

    public void setRppn(Integer rppn) {
        this.rppn = rppn;
    }

    public Integer getRpfy() {
        return rpfy;
    }

    public void setRpfy(Integer rpfy) {
        this.rpfy = rpfy;
    }

    public String getRpac02() {
        return rpac02;
    }

    public void setRpac02(String rpac02) {
        this.rpac02 = rpac02;
    }

    public Date getRpdmtj() {
        return rpdmtj;
    }

    public void setRpdmtj(Date rpdmtj) {
        this.rpdmtj = rpdmtj;
    }

    public Date getRpdgj() {
        return rpdgj;
    }

    public void setRpdgj(Date rpdgj) {
        this.rpdgj = rpdgj;
    }

    public Integer getCcco() {
        return ccco;
    }

    public void setCcco(Integer ccco) {
        this.ccco = ccco;
    }

    public Integer getRpan8() {
        return rpan8;
    }

    public void setRpan8(Integer rpan8) {
        this.rpan8 = rpan8;
    }

    public String getRpdctm() {
        return rpdctm;
    }

    public void setRpdctm(String rpdctm) {
        this.rpdctm = rpdctm;
    }

    public String getRpag() {
        return rpag;
    }

    public void setRpag(String rpag) {
        this.rpag = rpag;
    }

    public String getRpdct() {
        return rpdct;
    }

    public void setRpdct(String rpdct) {
        this.rpdct = rpdct;
    }

    public Double getRpdoc() {
        return rpdoc;
    }

    public void setRpdoc(Double rpdoc) {
        this.rpdoc = rpdoc;
    }

    public Date getRpdivj() {
        return rpdivj;
    }

    public void setRpdivj(Date rpdivj) {
        this.rpdivj = rpdivj;
    }

    public Date getRpddj() {
        return rpddj;
    }

    public void setRpddj(Date rpddj) {
        this.rpddj = rpddj;
    }

    public String getRpac0201() {
        return rpac0201;
    }

    public void setRpac0201(String rpac0201) {
        this.rpac0201 = rpac0201;
    }

    public String getRprmk() {
        return rprmk;
    }

    public void setRprmk(String rprmk) {
        this.rprmk = rprmk;
    }

    public String getRpac05() {
        return rpac05;
    }

    public void setRpac05(String rpac05) {
        this.rpac05 = rpac05;
    }

    public String getRptorg() {
        return rptorg;
    }

    public void setRptorg(String rptorg) {
        this.rptorg = rptorg;
    }

    public String getRpan809() {
        return rpan809;
    }

    public void setRpan809(String rpan809) {
        this.rpan809 = rpan809;
    }

    public Integer getRpdocm() {
        return rpdocm;
    }

    public void setRpdocm(Integer rpdocm) {
        this.rpdocm = rpdocm;
    }

    @Override
    public Object getEntityBean() throws EaError {

        ChequerechazadocaStore chr = (ChequerechazadocaStore) super.getEntityBean();
        chr.setA5acl(this.getFldA5ACL());
        chr.setA5trar(this.getFldA5TRAR());
        chr.setA5trar01(this.getFldA5TRAR01());
        chr.setCompania(this.getCcco());
        chr.setCodigo(this.getRpan8());
        chr.setCliente(this.getRpan809());
        chr.setTipodocto(this.getRpdctm());
        chr.setDocumento(this.getRpdocm() != null ? this.getRpdocm().toString() : "");
        return chr;

    }

    public ChequeRechazadoCA() {
        this.setDestClassType(ChequerechazadocaStore.class);
    }
}
